PME flags
PME (process MIDI event) flags are used by FL Studio in order to represent additional information about an event, and FL Studio's state while processing the event.
import midi
def OnMidiIn(msg: FlMidiMsg):
if msg.pmeFlags & midi.PME_System:
print("Safe to perform system operations")
PME_System
module-attribute
Safe to perform common system operations, such as starting/stopping transport.
PME_System_Safe
module-attribute
Safe to perform critical system operations, such as adding markers.
This flag is unset when a model window is shown.
PME_PreviewNote
module-attribute
This event will trigger a preview note or control things.
PME_FromHost
module-attribute
When FL Studio is hosted as a VST, this indicates that the event originates from the host DAW.
PME_FromMIDI
module-attribute
The event originates from an (external?) MIDI event.
PME_FromScript
module-attribute
The event originates from another script? (ie via
device.dispatch()
).